package com.niit.controller;

import com.niit.entity.User;

public class TestMethod {

    public <T> T sayHello(T t){
        return t;
    }

    public static void main(String[] args) {
        TestMethod testMethod = new TestMethod();
        testMethod.sayHello("niit");
        testMethod.sayHello(123);
        testMethod.sayHello(2.5);
        testMethod.sayHello(new User());
    }
}
